package com.example.binke.pojo;

import java.sql.Time;
import java.util.Date;

public class Order {
    private int id; //订单号
    private int customerId; //顾客编号
    private Date date; //下单时间
    private String address; //住宿地址
    private String state; //订单状态：待付款/已付款/未入住/已入住/订单完成
    private double total; //订单总金额

    public Order(int id, int customerId, Date date, String address, String state, int total) {
        this.id = id;
        this.customerId = customerId;
        this.date = date;
        this.address = address;
        this.state = state;
        this.total = total;
    }

    public Order() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getCustomerId() {
        return customerId;
    }

    public void setCustomerId(int customerId) {
        this.customerId = customerId;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public double getTotal() {
        return total;
    }

    public void setTotal(double total) {
        this.total = total;
    }

    @Override
    public String toString() {
        return "Order{" +
                "id=" + id +
                ", customerId=" + customerId +
                ", date=" + date +
                ", address='" + address + '\'' +
                ", state='" + state + '\'' +
                ", total=" + total +
                '}';
    }
}